/********************************************************************************
    Author :
********************************************************************************/

/********************************************************************************
    Include Files :
********************************************************************************/
#include "Std_Type.h"
/********************************************************************************
    Defination :
********************************************************************************/
#define LIGHT_CODE
/********************************************************************************
    Comment : The range of brightness level
********************************************************************************/
#define MAX_LEVEL (uint8)0x05
#define MIN_LEVEL (uint8)0x00
/********************************************************************************
    Type name :
********************************************************************************/
/********************************************************************************
    Comment : The type of changeable light
********************************************************************************/
typedef enum
{
	ENU_RED_LGIHT   = (uint8)0x00,
	ENU_GREEN_LGIHT = (uint8)0x01,
	ENU_LOCK_LGIHT  = (uint8)0x02,
}enuChangeableLight;


/********************************************************************************
    Comment : The type of selected light
********************************************************************************/
typedef enum
{
	ENU_SELECT_LIGHT_RED 	= (uint8)0x00,
	ENU_SELECT_LIGHT_GREEN  = (uint8)0x01,
}enuSelectLight;

/********************************************************************************
    Comment : The level of brightness
********************************************************************************/
typedef enum
{
	ENU_LEVEL_OFF  = (uint8)0x00,
	ENU_LEVEL_1    = (uint8)0x01,
	ENU_LEVEL_2    = (uint8)0x02,
	ENU_LEVEL_3    = (uint8)0x03,
	ENU_LEVEL_4    = (uint8)0x04,
	ENU_LEVEL_ON   = (uint8)0x05,
}enuBrightnessLevel;
/********************************************************************************
    Public variables :
********************************************************************************/

/********************************************************************************
    Public function :
********************************************************************************/
PUBLIC FUNC(void,LIGHT_CODE) Light_vidIncreaseBrightness(enuChangeableLight enuLight);
PUBLIC FUNC(void,LIGHT_CODE) Light_vidDecreaseBrightness(enuChangeableLight enuLight);

PUBLIC FUNC(enuSelectLight,LIGHT_CODE) Light_enuGetSelectLight(void);
PUBLIC FUNC(void,LIGHT_CODE) Light_vidSetSelectLight(enuSelectLight enuLight);

PUBLIC FUNC(void,LIGHT_CODE) Light_vidSetBrightness(enuChangeableLight enuLight,enuBrightnessLevel enuLevel);
PUBLIC FUNC(enuBrightnessLevel,LIGHT_CODE) Light_enuGetBrightness(enuChangeableLight enuLight);

PUBLIC FUNC(void,LIGHT_CODE) Light_vidSetAdcValue(enuSelectLight enuLight);

PUBLIC FUNC(void,LIGHT_CODE) Light_vidUpdateLockLight(boolean bIsLock);